﻿@model FYSJcrm.Core.Web.Areas.AdminManage.Models.MainViewModel
@{
    ViewBag.Title = "客户管理系统";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<aside class="Hui-admin-aside-wrapper">
    <div class="Hui-admin-logo-wrapper">
        <a class="logo navbar-logo" href="/AdminManage/Main/Index">
            <i class="va-m iconpic global-logo"></i>
        </a>
    </div>
    <div class="Hui-admin-menu-dropdown bk_2">
        @foreach (var pnav in Model.Navigations)
        {
            if (pnav.ActionType.Contains("Show"))
            {
                <dl id="@pnav.Name" class="Hui-menu">
                    <dt class="Hui-menu-title"><i class="Hui-iconfont">@Html.Raw(pnav.IconUrl)</i> @pnav.Title<i class="Hui-iconfont Hui-admin-menu-dropdown-arrow">&#xe6d5;</i></dt>
                    <dd class="Hui-menu-item">
                        <ul>
                            @foreach (var cnav in pnav.Childs.Where(n => n.ParentId == pnav.Id))
                            {
                                if (cnav.ActionType.Contains("Show"))
                                {
                                    <li><a data-href="@cnav.LinkUrl" data-title="@cnav.Title" href="javascript:void(0)">@cnav.Title</a></li>
                                }
                            }
                        </ul>
                    </dd>
                </dl>
            }
        }
    </div>
</aside>
<div class="Hui-admin-aside-mask"></div>
<!--/_menu 作为公共模版分离出去-->

<div class="Hui-admin-dislpayArrow">
    <a href="javascript:void(0);" onClick="displaynavbar(this)">
        <i class="Hui-iconfont Hui-iconfont-left">&#xe6d4;</i>
        <i class="Hui-iconfont Hui-iconfont-right">&#xe6d7;</i>
    </a>
</div>

<section class="Hui-admin-article-wrapper">
    <!--_header 作为公共模版分离出去-->
    <header class="Hui-navbar">
        <div class="navbar">
            <div class="container-fluid clearfix">
                <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar">
                    <ul class="clearfix">
                        <li>@Model.Manager.ManagerRole.RoleName</li>
                        <li class="dropDown dropDown_hover">
                            <a href="#" class="dropDown_A">@Model.Manager.UserName <i class="Hui-iconfont">&#xe6d5;</i></a>
                            <ul class="dropDown-menu menu radius box-shadow">
                                <li><a href="javascript:;" onClick="change_password('修改密码','/PermManage/AdminUser/ChangePassword','@Model.Manager.Id')">修改密码</a></li>
                                <li><a href="/AdminManage/Main/LoginOut">安全退出</a></li>
                            </ul>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
    </header>
    <!--/_header 作为公共模版分离出去-->

    <div id="Hui-admin-tabNav" class="Hui-admin-tabNav">
        <div class="Hui-admin-tabNav-wp">
            <ul id="min_title_list" class="acrossTab clearfix" style="width: 241px; left: 0px;">
                <li class="active"><span title="我的桌面" data-href="welcome.html">我的桌面</span><em></em></li>
            </ul>
        </div>
        <div class="Hui-admin-tabNav-more btn-group" style="display: none;">
            <a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a>
            <a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a>
        </div>
    </div>

    <div id="iframe_box" class="Hui-admin-article">
        <div class="show_iframe">
            <iframe id="iframe-welcome" data-scrolltop="0" scrolling="yes" frameborder="0" src="/AdminManage/Main/WelCome"></iframe>
        </div>
    </div>
</section>
<div class="contextMenu" id="Huiadminmenu">
    <ul>
        <li id="closethis">关闭当前 </li>
        <li id="closeother">关闭其他 </li>
        <li id="closeall">关闭全部 </li>
    </ul>
</div>